home *** CD-ROM | disk | FTP | other *** search
- // SecondStep.cpp : implementation file
- //
-
- #include "stdafx.h"
- #include "RegenWizard.h"
- #include "SecondStep.h"
-
- #include "RegenWizardAW.h"
-
- #ifdef _DEBUG
- #define new DEBUG_NEW
- #undef THIS_FILE
- static char THIS_FILE[] = __FILE__;
- #endif
-
- /////////////////////////////////////////////////////////////////////////////
- // CSecondStep dialog
-
-
- CSecondStep::CSecondStep(CRegenWizardAppWiz *pMain, CWnd* pParent /*=NULL*/)
- : CAppWizStepDlg(CSecondStep::IDD),
- m_pclsMain(pMain)
- {
- //{{AFX_DATA_INIT(CSecondStep)
- m_strDestination = _T("");
- m_strSDKInclude = _T("");
- //}}AFX_DATA_INIT
-
- m_pclsMain->m_Dictionary [_T("SDKIncludeDirectory")] = _T("");
- }
-
-
- void CSecondStep::DoDataExchange(CDataExchange* pDX)
- {
- CDialog::DoDataExchange(pDX);
- //{{AFX_DATA_MAP(CSecondStep)
- DDX_Text(pDX, IDC_EDIT_DESTINATION, m_strDestination);
- DDX_Text(pDX, IDC_EDIT_SDKINCLUDE, m_strSDKInclude);
- //}}AFX_DATA_MAP
- }
-
-
- BEGIN_MESSAGE_MAP(CSecondStep, CAppWizStepDlg)
- //{{AFX_MSG_MAP(CSecondStep)
- ON_EN_CHANGE(IDC_EDIT_DESTINATION, OnChangeEditDestination)
- ON_EN_CHANGE(IDC_EDIT_SDKINCLUDE, OnChangeEditSdkinclude)
- ON_WM_SHOWWINDOW()
- //}}AFX_MSG_MAP
- END_MESSAGE_MAP()
-
- /////////////////////////////////////////////////////////////////////////////
- // CSecondStep message handlers
-
- void CSecondStep::OnChangeEditDestination()
- {
- // TODO: Add your control notification handler code here
- UpdateData();
-
- m_pclsMain->m_strDestination = m_strDestination;
- }
-
- void CSecondStep::OnChangeEditSdkinclude()
- {
- // TODO: Add your control notification handler code here
- UpdateData();
-
- m_pclsMain->m_strSDKInclude = m_strSDKInclude ;
-
- m_pclsMain->m_Dictionary [_T("SDKIncludeDirectory")] = m_strSDKInclude;
- }
-
- void CSecondStep::OnShowWindow(BOOL bShow, UINT nStatus)
- {
- CAppWizStepDlg::OnShowWindow(bShow, nStatus);
-
- // TODO: Add your message handler code here
- if (bShow) m_strDestination = m_pclsMain->m_strDestination;
- UpdateData(false);
- }
-